// Fill out your copyright notice in the Description page of Project Settings.


#include "STWindowInfo.h"

EWindowMode::Type USTWindowInfo::GetWindowMode(ESTwindowMode wm) 
{
	switch (wm)
	{
	case ESTwindowMode::ST_Fullscreen:
		return EWindowMode::Type::Fullscreen;

	case ESTwindowMode::ST_WindowedFullscreen:
		return EWindowMode::Type::WindowedFullscreen;	

	case ESTwindowMode::ST_Windowed:
		return EWindowMode::Type::Windowed;
	
	case ESTwindowMode::ST_NumWindowModes:
		return EWindowMode::Type::NumWindowModes;	
	default:
		break;
	}

	return EWindowMode::Type::Fullscreen;

}

ESTwindowMode USTWindowInfo::GetStWindowMode(EWindowMode::Type wm) 
{

	switch (wm)
	{
	case EWindowMode::Fullscreen:
		return ESTwindowMode::ST_Fullscreen;

	case EWindowMode::WindowedFullscreen:
		return ESTwindowMode::ST_WindowedFullscreen;

	case EWindowMode::Windowed:
		return ESTwindowMode::ST_Windowed;

	case EWindowMode::NumWindowModes:
		return ESTwindowMode::ST_NumWindowModes;

	default:
		break;
	}
	return ESTwindowMode::ST_Fullscreen;

}
